<div class="span7">
	<?php
	$this->pageTitle=$this->pageTitle . ' - '.tt('Contact');
	$this->breadcrumbs=array(
		tt('Contact'),
	);
	?>

	<h3><?= Yii::t('module_contact','Contact'); ?></h3>

	<?php if(Yii::app()->user->hasFlash('contact')): ?>

	<div class="flash-success">
		<?= Yii::app()->user->getFlash('contact'); ?>
	</div>

	<?php else: ?>

	<p>
		<?= tt('If you have business inquiries or other questions, please fill out the following form to contact us. Thank you.'); ?>
	</p>

	<div class="form">

	<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'contact-form',
		'enableClientValidation'=>true,
		'clientOptions'=>array(
			'validateOnSubmit'=>true,
		),
		'htmlOptions'=>array(
			'class' => 'form-inline',
		)
	)); ?>

		<div class="control-group">
			<?= $form->labelEx($model,'name', array("class"=>"control-label")); ?>
			<div class="controls">
				<?= $form->textField($model,'name', array("class"=>"input-xxlarge")); ?>
				<?= $form->error($model,'name'); ?>
			</div>
		</div>

		<div class="control-group">
			<?= $form->labelEx($model,'email', array("class"=>"control-label")); ?>
			<div class="controls">
				<?= $form->textField($model,'email', array("class"=>"input-xxlarge")); ?>
				<?= $form->error($model,'email'); ?>
			</div>
		</div>

		<div class="control-group">
			<?= $form->labelEx($model,'subject', array("class"=>"control-label")); ?>
			<div class="controls">
				<?= $form->textField($model,'subject',array('size'=>60,'maxlength'=>128,"class"=>"input-xxlarge")); ?>
				<?= $form->error($model,'subject'); ?>
			</div>
		</div>

		<div class="control-group">
			<?= $form->labelEx($model,'body', array("class"=>"control-label")); ?>
			<div class="controls">
				<?= $form->textArea($model,'body',array('rows'=>6, 'cols'=>50,"class"=>"input-xxlarge")); ?>
				<?= $form->error($model,'body'); ?>
			</div>
		</div>

		<?php if(CCaptcha::checkRequirements()): ?>
		<div class="control-group">
			<?= $form->labelEx($model,'verifyCode', array("class"=>"control-label")); ?>
			<div class="controls">
				<?php $this->widget('CCaptcha', array(
					'imageOptions' => array(
						'id' => 'imgContact'
					)
				)); ?>
				<?= $form->textField($model,'verifyCode',array("class"=>"input-large pull-right")); ?>
				<div class="help-block">
					<?= tt('Please enter the letters as they are shown in the image above.<br/>Letters are not case-sensitive.');?>
				</div>
				<?= $form->error($model,'verifyCode'); ?>
			</div>
		</div>
		<?php endif; ?>

		<div class="form-actions">
			<?= CHtml::submitButton(tt('Submit'), array("class"=>"btn btn-primary")); ?>
		</div>

	<?php $this->endWidget(); ?>

	</div><!-- form -->

	<?php endif; ?>
</div>